package com.tool2.spring.manager;

import com.tool2.spring.dao.UserDao;


/**
 * @Author: lixiaofei
 */
public class UserManager {
	private UserDao userDao;

	//构造方式注入-配置文件用<constructor-arg>
	public UserManager(UserDao userDao){
		this.userDao=userDao;
	}
	
	public void addUser(String username, String password) {
      this.userDao.addUser(username, password);
	}

	//属性注方式
//	public void setUserDao(UserDao userDao) {
//		this.userDao = userDao;
//	}
	
	

}
